<!DOCTYPE html>
<html lang="en">
 
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
 
<body>
    <div id="map" style="width:80%;height:400px;border: 1px solid orange;"></div>
    <script type="module">
        import Game from './js/game.js';
        // 全局的地图 map
        let map = document.getElementById('map');
        let game = new Game(map);
        // 调用开始方法
        game.start();
    </script>
</body>
 
</html>